#pragma once
#include "LineCapPlug.h"
#include "DDBufferBlock.h"

class xtLineSysRevise
{
public:
	xtLineSysRevise(void);
	~xtLineSysRevise(void);

public:
	int SelectFile(char *pFile,int nCreateRevise = 0);
	int GetReviseFileInfo(char *pFileName,void *pVoid);

public:
	int Revise(BYTE *pData,zkLineBitInfo *pLineBit);


public:
	int StartRevise(void *pVoid,zkLineBitInfo *pLineBit);
	int SetGrade(int nGrade);
	int SetLineData(BYTE *pData,zkLineBitInfo *pLineBit);
	int SetReviseFile(char *pFileName);
	int CreateRevise();

protected:
	BOOL m_bReviseLine;

protected:
	zkReviseFileInfo m_xSysReviseFile;

protected:
	zkSysReviseItem  m_xSysReviseItem[DD_MAX_GRADES];
	DDBufferBlock    m_xBufBlock;    
	int              m_nWidth;

protected:
	int m_nGrade;

protected:
	char m_szReviseFile[260];


};
